🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / network / src / jvmAndroidMain / kotlin / org / meshtastic / core / network / transport / ConnectionFailures.jvmAndroid.kt
Displaying Raw • Download
core/network/src/jvmAndroidMain/kotlin/org/meshtastic/core/network/transport/ConnectionFailures.jvmAndroid.kt bd2863243bab6eb213401d949839a2bc74dde7e2 (bd286324) Text, 1.42 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.network.transport
Tff7b72import T7ee787java.nio.channels.UnresolvedAddressException
T8b949e/**
* On JVM/Android nearly every socket failure already extends `java.io.IOException`, which the common predicate covers —
* `ConnectException`, `SocketException`, `UnknownHostException`, `EOFException` and friends all qualify there.
*
* [UnresolvedAddressException] is the exception: Ktor throws it when a hostname cannot be resolved, and it extends
* `IllegalArgumentException`, so it slips past every `catch (IOException)` in the transport stack and lands in the
* generic handler that reports errors.
*/
Tff7b72internal Tff7b72actual Tff7b72fun Te6edf3ThrowableTb4b4b4.Td2a8ffisPlatformConnectionFailureTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657Boolean Tff7b72= Tff7b72this Tff7b72is Te6edf3UnresolvedAddressException
Served by rngit 1.5.0 - Generated in 0.07s